import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
  // base: '/yy/',
  plugins: [vue()],
  resolve: {
    //npm install --save-dev @types/node，就可以用全局变量__dirname
    alias: {
      '@': resolve(__dirname, './src'),
    },
  },
  server: {
    port: 8080,
    open: true,
  },
});
